package com.ruoyi.web.wx.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.wx.mapper.TrashAutonomousRecordDetailsMapper;
import com.ruoyi.web.wx.entity.TrashAutonomousRecordDetails;
import com.ruoyi.web.wx.service.ITrashAutonomousRecordDetailsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 自主投递记录详情 服务层实现
 * 
 * @author ruoyi
 * @date 2019-08-27
 */
@Service
public class TrashAutonomousRecordDetailsServiceImpl implements ITrashAutonomousRecordDetailsService 
{
	@Autowired
	private TrashAutonomousRecordDetailsMapper trashAutonomousRecordDetailsMapper;

	/**
     * 查询自主投递记录详情信息
     * 
     * @param id 自主投递记录详情ID
     * @return 自主投递记录详情信息
     */
    @Override
	public TrashAutonomousRecordDetails selectTrashAutonomousRecordDetailsById(String id)
	{
	    return trashAutonomousRecordDetailsMapper.selectTrashAutonomousRecordDetailsById(id);
	}
	
	/**
     * 查询自主投递记录详情列表
     * 
     * @param trashAutonomousRecordDetails 自主投递记录详情信息
     * @return 自主投递记录详情集合
     */
	@Override
	public List<TrashAutonomousRecordDetails> selectTrashAutonomousRecordDetailsList(TrashAutonomousRecordDetails trashAutonomousRecordDetails)
	{
	    return trashAutonomousRecordDetailsMapper.selectTrashAutonomousRecordDetailsList(trashAutonomousRecordDetails);
	}
	
    /**
     * 新增自主投递记录详情
     * 
     * @param trashAutonomousRecordDetails 自主投递记录详情信息
     * @return 结果
     */
	@Override
	public int insertTrashAutonomousRecordDetails(TrashAutonomousRecordDetails trashAutonomousRecordDetails)
	{
	    return trashAutonomousRecordDetailsMapper.insertTrashAutonomousRecordDetails(trashAutonomousRecordDetails);
	}
	
	/**
     * 修改自主投递记录详情
     * 
     * @param trashAutonomousRecordDetails 自主投递记录详情信息
     * @return 结果
     */
	@Override
	public int updateTrashAutonomousRecordDetails(TrashAutonomousRecordDetails trashAutonomousRecordDetails)
	{
	    return trashAutonomousRecordDetailsMapper.updateTrashAutonomousRecordDetails(trashAutonomousRecordDetails);
	}

	/**
     * 删除自主投递记录详情对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteTrashAutonomousRecordDetailsByIds(String ids)
	{
		return trashAutonomousRecordDetailsMapper.deleteTrashAutonomousRecordDetailsByIds(Convert.toStrArray(ids));
	}
	
}
